package com.mzj.saas.mservice.sys.repository;

import com.mzj.saas.mservice.sys.entity.Permission;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;


public interface PermissionRepository
		extends PagingAndSortingRepository<Permission, Long>, JpaSpecificationExecutor<Permission> {
	List<Permission> findByParentId(Long parentId);
	List<Permission> findAll();
	
}
